package com.p2p.auth.service.repository;

import com.p2p.auth.domain.entity.UserAssignRole;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by Antinomy on 16/12/14.
 */
public interface UserAssignRoleRepository extends JpaRepository<UserAssignRole, Long> {

    void deleteByUserId(String userId);

    List<UserAssignRole> findByUserId(String userId);

    List<UserAssignRole> findByRoleId(String roleId);
}
